package com.example.module_web.adapter;

import android.content.Context;
import android.view.View;

import com.example.module_web.R;
import com.example.module_web.beans.WhitenSingleton;
import com.example.module_web.viewholder.BindViewHolder;

import java.util.HashMap;
import java.util.List;

/**
 * Created by ASUS on 2018/3/18.
 */

public class WhitenSingletonAdapter extends FormBAdapter<WhitenSingleton> {

    public WhitenSingletonAdapter(int layoutRes, List<WhitenSingleton> beans) {
        super(layoutRes, beans);
    }

    @Override
    protected void onBind(BindViewHolder holder, int position, WhitenSingleton whitenSingleton) {
        holder.setText(R.id.item_form_num,String.valueOf(whitenSingleton.getNumber()))
                .setText(R.id.item_form_date,whitenSingleton.getDate())
                .setText(R.id.item_form_fangke,String.valueOf(whitenSingleton.getFangke()))
                .setText(R.id.item_form_liulan,String.valueOf(whitenSingleton.getLiulan()))
                .setText(R.id.item_form_jiagou,String.valueOf(whitenSingleton.getJiagou()))
                .setText(R.id.item_form_shoucang,String.valueOf(whitenSingleton.getShoucang()))
                .setText(R.id.item_form_tingliu,String.valueOf(whitenSingleton.getTingliu()));
    }
}
